﻿using Pattern16策略模式.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern16策略模式.Models
{
    public class PayContext
    {
        private PayBase Pay = new NormalPay();

        public void SetPayMode(PayBase pay)
        {
            Pay = pay;
        }

        public double GetResult(double money)
        {
            return Pay.Calc(money);
        }
    }
}
